<!DOCTYPE html PUBLIC 
	"-//W3C//DTD XHTML 1.1 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@taglib prefix="s" uri="/struts-tags"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><s:text name="z3950.search.title" /></title>
<s:head />
</head>
<body>
	<s:if test="page > 1"> 
		<s:form namespace="/resource" action="searchZ3950" >
			<s:hidden name="attribute" />
			<s:hidden name="query" />
			<input type="hidden" name="page" value="<s:property value="previous"/>" />
			<s:submit value="z3950.search.previousPage" />
		</s:form>
	</s:if>

	<table border="1">
	<tr>
		<th><s:text name="list.details" /></th>
		<th><s:text name="list.title" /></th>
		<th><s:text name="list.author" /></th>
	</tr>
	
	<s:iterator value="results" status="stat">
		<tr>
			<td><s:url id="import_resource" action="importZ3950" namespace="/resource" includeParams="none">
						<s:param name="position" value="#stat.index + 5 * (page - 1)"/>
						
						<s:param name="query">
							<s:property value="query"/>
						</s:param>
						
						<s:param name="attribute">
							<s:property value="attribute"/>
						</s:param>
						
				</s:url>
				<a href="${import_resource}"><s:text name="list.showDetails" /></a></td>
			<td><s:property value="makeTitle()"/></td>
			<td><s:property value="makeAuthor()"/></td>
		</tr>
	</s:iterator>

	</table>
	<s:form namespace="/resource" action="searchZ3950" >
		<s:hidden name="attribute" />
		<s:hidden name="query" />
		<input type="hidden" name="page" value="<s:property value="next"/>" />
		<s:submit value="z3950.search.nextPage" />
	</s:form>
</body>
</html>